<style>
    body{
        background-color: #f9f9f9;
        overflow-y: hidden;
    }
    .xh-form tr td:nth-child(2n) {
        padding: 5px 0px 5px 0px;
    }
</style>
<form id="xh_form" class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%">
            <tr>
                <input type="hidden" name="iId" value="{{ iId }}">
                <td width="80"><label style="width: 75px">许可证Key:</label></td>
                <td>
                    {% if iId>0 %}
                        <input style="width: 160px" name="sKey" type="text" must="true" value="{{ info['sKey'] }}" maxlength="60" autocomplete="off">
                        {% else %}
                            <input style="width: 160px" name="sKey" type="text" must="true" value="" maxlength="60" autocomplete="off">
                    {% endif %}
                </td>
                <td  width="80"><label style="width: 75px">功能分类:</label></td>
                <td>
                    <select id ='iType'  name="iType" style="width:160px;height:34px">
                        {% for key ,type in types %}
                            {% if iId>0 %}
                                <option {% if info['iType'] == type  %} selected {% endif %} value = {{ key }}>{{ type }}</option>
                            {% else %}
                                <option value = {{ key }}>{{ type }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label style="width: 75px">厂商:</label></td>
                <td>
                    {% if iId>0 %}
                        <input style="width: 160px" name="sManufacturer" type="text" must="true" value="{{ info['sManufacturer'] }}" maxlength="50" autocomplete="off">
                    {% else %}
                        <input style="width: 160px" name="sManufacturer" type="text" must="true" value=""  maxlength="50" autocomplete="off">
                    {% endif %}

                </td>
                <td><label style="width: 75px">可使用次数:</label></td>
                <td>
                    {% if iId>0 %}
                        <input style="width: 160px" name="iSumTimes" type="text" must="true" value="{{ info['iSumTimes'] }}" maxlength="30" autocomplete="off">
                    {% else %}
                        <input style="width: 160px" name="iSumTimes" type="text" must="true" value="" maxlength="30" autocomplete="off">
                    {% endif %}
                </td>
            </tr>
            <tr>
                <td><label style="width: 75px;">是否收费:</label></td>
                <td width="160">
                    <select id ='bFree'  name="bFree" style="width:160px;height:34px">
                        {% for key ,free in frees %}
                            {% if iId>0 %}
                                <option {% if info['bFree'] == free  %} selected {% endif %} value = {{ key }}>{{ free }}</option>
                            {% else %}
                                <option value = {{ key }}>{{ free }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </td>
                <td><label style="width: 75px;">状态:</label></td>
                <td width="160">
                    <select id ='iState'  name="iState" style="width:160px;height:34px">
                        {% for key ,state in states %}
                            {% if iId>0 %}
                                <option {% if info['iState'] == state  %} selected {% endif %} value = {{ key }}>{{ state }}</option>
                            {% else %}
                                <option value = {{ key }}>{{ state }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label style="width: 75px;">有效期:</label></td>
                <td width="160">
                    {% if iId>0 %}
                        <input style="width:160px;" class="tExpirytime" value="{{ info['tExpirytime'] }}" id="tExpirytime" name="tExpirytime" autocomplete="off" >
                    {% else %}
                        <input style="width:160px;" class="tExpirytime" id="tExpirytime" name="tExpirytime" autocomplete="off" >
                    {% endif %}

                </td>
            </tr>
        </table>
    </div>
    <div class="xh-area-button" style="padding-left: 75px;background-color: inherit">
        {% if FormButton is defined %}{{ FormButton }}{% endif %}
    </div>
</form>